package pers.cj.pdos.controller.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import pers.cj.pdos.controller.base.BaseController;
import pers.cj.pdos.service.*;

@Controller
public class InitController extends BaseController {

    @Autowired
    private IPermissionService permissionService;

    @Autowired
    private IIndustryService industryService;

    @Autowired
    private IMenu1Service menu1Service;
    @Autowired
    private IMenu2Service menu2Service;
    @Autowired
    private IMenu3Service menu3Service;

    @RequestMapping("/init")
    public String menu() {
        new InitPermission().init(permissionService);
        new InitMenu().init(menu1Service,menu2Service,menu3Service);
        new InitIndustry().init(industryService);
        return "initSuccess";
    }
}
